import { Component, OnInit } from '@angular/core';
import { NavController } from '@ionic/angular';
import { ActivatedRoute } from '@angular/router';

@Component({
  selector: 'app-zhuce-sex',
  templateUrl: './zhuce-sex.page.html',
  styleUrls: ['./zhuce-sex.page.scss'],
})
export class ZhuceSexPage implements OnInit {

  public userInfo:any={
    name:'',
    phoneNumber:'',
    pwd:'',
    question:'',
    answer:'',
    gender:'1'
  }

  constructor(public navCtrl: NavController,public arouter:ActivatedRoute) {
   }

  ngOnInit() {

    this.arouter.params.subscribe((data)=>{
      this.userInfo.name = data.name;
      this.userInfo.phoneNumber = data.phoneNumber;
      this.userInfo.pwd = data.pwd;
      this.userInfo.question = data.question;
      this.userInfo.answer = data.answer;
      console.log(this.userInfo)
    })
  }

  next(){
    this.navCtrl.navigateRoot('/tabs/dongtai')

  }

}
